<!-- FULL BLOCK HÌNH ẢNH HOẠT ĐỘNG -->
<?php
	$sql = "SELECT * FROM images ORDER BY id DESC lIMIT 10";
	$connection = yii::app()->db;
	$command = $connection->createCommand($sql);
	$result =  $command->queryAll();
?>
<div class="block block-picture-activity container">
	<h2 class="title"><a href="<?php echo PIUrl::createUrl('/home/albumImage');?>"><i class="icon icon-picture-activity"></i><?php echo translate("Hình ảnh hoạt động"); ?> / <span class="more"><?php echo translate("Xem thêm"); ?></span></a></h2>
	<?php if(!empty($result)){ ?>
		<div id="owl-carousel-01" class="owl-carousel hover-item">
			<?php foreach($result as $row){ ?>
			<div class="item-inner">
				<div class="img-liquid">
					<a href="javascript:void(0)" ><img src="<?php echo getImage($row['image'], 274, 124,1); ?>" alt="img" /></a>
					<a href="<?php echo Yii::app()->baseUrl; ?>/upload/images/<?php echo $row['image'];?>" class="mask popupImage" ></a>
				</div>
			</div>
			<?php } ?>
		</div>
	<?php } ?>
</div>
<script>
$(document).ready(function(){
	
	$('.popupImage').magnificPopup({
	  type: 'image',
	  gallery:{
		enabled:true
	  }
	});
});
</script>